﻿using Coldairarrow.Entity.Base_Manage;
using Coldairarrow.Util;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Base_Manage
{
    public interface IBase_LoginLogBusiness
    {
        Task<PageResult<Base_LoginLog>> GetDataListAsync(PageInput<LoginLogInputDTO> input);
        Task<Base_LoginLog> GetTheDataAsync(string id);
        Task AddDataAsync(Base_LoginLog data);
        Task UpdateDataAsync(Base_LoginLog data);
        Task DeleteDataAsync(List<string> ids);
        string SetIPLog(IHttpContextAccessor _accessor, string userName);
        Task UpdateIPLog(string id);
    }

    public class LoginLogInputDTO
    {
        public string userName { get; set; }
        public DateTime? startTime { get; set; }
        public DateTime? endTime { get; set; }
    }
}